import Cookies from 'js-cookie'

const TokenKey = 'vue_oh_no'
let TimeKey = 'vue_time'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

//设置cookie时间
export function setTime(date) {
  return Cookies.set(TimeKey, date)
}

//获取cookie时间
export function getTime() {
  return Cookies.get(TimeKey)
}

//删除cookie时间
export function removeTime() {
  return Cookies.remove(TimeKey)
}
